package com.anpy.album.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@Data
@TableName(value = "T_STATISTICS_ALBUM")
public class AlbumStatisticsEntity {

    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "user_id")
    private Integer userId = 1;
    @TableField(value = "photo_count")
    private Integer photoCount;
    @TableField(value = "album_id")
    private Integer albumId;

}
